<%@ page language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>struts2框架上传与下载</title>
</head>
<body>
<h3>使用struts框架进行下载</h3>
<a href="downgirl.action?fn=a&ext=.jpg&path=down" download>下载美女图片</a>&nbsp;
<a href="down.action?fn=dex" download> 下载dex.jsp</a>


<hr>
<h3>servlet3 文件上传</h3>
<form action="upload.do" method="post" enctype="multipart/form-data">
    名称：<input type="text" name="name" ><br>
    文件：<input type="file" name="file" ><br>
    <input type="submit" value="servlet3 文件上传">
</form>
<hr>
<h3>struts-上传</h3>
<form action="up.action" method="post" enctype="multipart/form-data">
    名称：<input type="text" name="name" ><br>
    文件：<input type="file" name="file" ><br>
    <input type="submit" value="struts-上传">
</form>

<hr>
<h3>struts-上传多文件</h3>
<form action="ups.action" method="post" enctype="multipart/form-data">
    名称：<input type="text" name="name" ><br>
    文件：<input type="file" name="file"  multiple><br>
    <input type="submit" value="struts-上传多文件">
</form>

</body>
</html>s